package com.lingxu.base.system.orgManage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lingxu.base.system.orgManage.entity.SysUserMenu;
import com.lingxu.base.system.orgManage.vo.MenuTree;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Title: SysUserMenuMapper
 * @Package: com.lingxu.base.system.orgManage.mapper
 * @Author: ysj闫世杰
 * @Email: 1105324813@qq.com
 * @Date: Created in 2022/6/21 10:59
 * @Description:
 * @Version: 1.0.0
 */
@Mapper
public interface SysUserMenuOldMapper extends BaseMapper<SysUserMenu> {

    List<Map> findUserMenuButton(@Param("userId") String userId,@Param("menuId") String menuId) throws Exception;

    List<MenuTree> findUserExistMenu(String userId);

    List<MenuTree> findUserNotExistMenu(String userId);

    int findParentExistMenuByUserId(String userId, String menuId);


    void removeUserMenu(SysUserMenu s);

}
